efc5bb9886f6fae3d504a401f7ab160a3238ae8f,community/src/java/org/neo4j/impl/shell/NeoShellServer.java,NeoShellServer,interpretVariable,#String#Serializable#Session#,57
Before Change
public Serializable interpretVariable( String key, Serializable value,
Session session ) throws RemoteException
{
if ( key.equals( AbstractClient.PROMPT_KEY ) )
{
return this.bashInterpreter.interpret( ( String ) value,
this, session );
}
return value;
}
After Change
public Serializable interpretVariable( String key, Serializable value,
Session session ) throws RemoteException
{
Transaction tx = getNeo().beginTx();
try
{
Serializable result = value;
if ( key.equals( AbstractClient.PROMPT_KEY ) )
{
result = this.bashInterpreter.interpret( ( String ) value,
this, session );
}
tx.success();
return result;
}
finally
{